const obj = {};
obj?.foo?.bar?.baz;

const ret = [1, 2].flatMap((x) => [x, x * 2]);
console.log(ret);
